package controllers
{
	import business.Broker;
	
	import flash.utils.setTimeout;
	
	import frameworks.business.RequestItem;
	import frameworks.controllers.BaseModuleController;
	import frameworks.widgets.Result;
	import frameworks.widgets.ResultProxy;
	
	import models.Model;

	public class ModuleController extends BaseModuleController
	{
		private var _mode:Model = Facade.SingleInstance().model;
		private var _broker:Broker = Facade.SingleInstance().broker;
		
		public function ModuleController()
		{
			super();
		}
		public function userInfo_build():ResultProxy{
			var result:RequestItem = _broker.configGet();
			result.addSuccessCallback(configGetSuccess);
			return result;
		}
		public function configGetSuccess(result:Result):void{
			_mode.initialization({"curUser":result.data});
		}
	}
}